﻿{extends file="../home.html"}

{block name="title"}{$head_title}{/block}
	
{block name="css"}
{/block}

{block name="content"}
<!--s主内容-->
<section class="content-wrapper">
  <div class="content-container container">
  	<!-- s面包屑导航 -->
  	{include file="../breadcrum_nav.html"}
  	<!-- e面包屑导航 -->
    <!-- s分类 -->
    <div class="col-left">
    {include file="../common_personal_nav.html"}
	</div>	
    <!-- e分类 -->
    <!-- s主内容 -->
    <div class="col-main">
		{include file="../common_personal_header.html"}
		<!-- s余额，充值,记录 -->
		<div class="user-main">
			<!-- s记录 -->
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>优惠券</th>
					</tr>
				</thead>
				{if !$coupon_list}
				<thead>
					<tr>
						<th style="text-align:center;font-weight:normal;">暂无优惠券</th>
					</tr>
				</thead>
				{/if}
				{if $coupon_list}
			    <thead>
		          <tr>
		            <th>优惠券名称</th>
		            <th>优惠券金额</th>
		            <th>使用金额（限制）</th>
		            <th>是否可用</th>
		            <th>是否使用</th>
		            <th>获得时间</th>
		            <th>订单编码</th>
		          </tr>
		        </thead>
		        <tbody>
            	{foreach from=$coupon_list item=coupon}
		          <tr>
		            <td>{$coupon.coupon_name}</td>
		            <td>{$coupon.num}</td>
		            <td>订单额需>{$coupon.price_limit}</td>
		            <td>{$coupon.usable}</td>
		            <td>{$coupon.state_name}</td>
		            <td>{$coupon.addtime|date_format:"%Y-%m-%d %H:%M:%S"}</td>
		            <td>{$coupon.order_sn}</td>
		          </tr>
		        {/foreach}
		        </tbody>
		        {/if}
		      </table>
		      <!-- s分页 -->
		      <div class="pagination">
		        <ul>
		          {$show}
		        </ul>
		      </div>
		      <!-- e记录 -->

		</div>
		<!-- e余额，充值，记录 -->

	</div>
	<div class="clearfix"></div>
    <!-- e主内容 -->
  </div>
</section>
<!--e主内容-->
{/block}

{block name="js"}
{/block}
